package ru.st.selenium.applogic0;

import java.util.List;

import ru.st.selenium.applogic.FilmHelper;
import ru.st.selenium.model.Film;

public class FilmHelper0 implements FilmHelper {
	
	private Film film;

	@Override
	public void addFilm(Film film) {
		if (film.getTitle() == null || film.getYear() == null) {
			this.film = null;
			return;
		}
		this.film = film;
	}

	@Override
	public void deleteFilm(Film film) {
		this.film = null;
		
	}

	@Override
	public boolean isCreated() {
		return this.film != null;
	}

	@Override
	public boolean isNotCreated() {
		return this.film == null;
	}

	@Override
	public List<Film> search(String title) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean filmsAreFound(String title) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean nothingIsFound(String title) {
		// TODO Auto-generated method stub
		return false;
	}

}
